package com.alibaba.dubbo.demo.consumer;

import com.alibaba.dubbo.config.annotation.Reference;
import com.alibaba.dubbo.demo.DemoService;
import org.springframework.stereotype.Component;

/**
 * @author huyong
 * @version 1.0.0
 * @description
 * @date 2015/5/5 9:24
 */
@Component
public class Consumer {
	@Reference(version = "1.0.0")
	private DemoService demoService;

	public void print(String name){
		String hello = demoService.sayHello(" " + name);
		System.err.println(hello);
	}
}
